package com.ryan.route.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 定制师
 * </p>
 *
 * @author ryan
 * @since 2020-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TravelAdvisor对象", description="定制师")
public class TravelAdvisor implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "定制师ID")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "定制师姓名")
    @NotBlank
    private String name;

    @ApiModelProperty(value = "定制师简介")
    private String intro;

    @ApiModelProperty(value = "头衔 1高级定制师 2首席定制师")
    private Integer level;

    @ApiModelProperty(value = "定制师头像")
    private String avatar;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    private Boolean isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
